/*  1:   */ package com.rinsi.app.azsb.azzl.scs.scxkzqz;
/*  2:   */ 
/*  3:   */ import com.rinsi.core.contoller.CoreSimpleController;
/*  4:   */ import com.rinsi.core.service.CoreSimpleService;
/*  5:   */ import java.io.IOException;
/*  6:   */ import java.util.Map;
/*  7:   */ import javax.servlet.ServletOutputStream;
/*  8:   */ import javax.servlet.http.HttpServletRequest;
/*  9:   */ import javax.servlet.http.HttpServletResponse;
/* 10:   */ import org.springframework.beans.factory.annotation.Autowired;
/* 11:   */ import org.springframework.stereotype.Controller;
/* 12:   */ import org.springframework.ui.ModelMap;
/* 13:   */ import org.springframework.web.bind.annotation.RequestMapping;
/* 14:   */ 
/* 15:   */ @Controller
/* 16:   */ @RequestMapping({"/azsb/azzl/scs/scxkzqz"})
/* 17:   */ public class ScxkzQzController
/* 18:   */   extends CoreSimpleController
/* 19:   */ {
/* 20:   */   @Autowired
/* 21:   */   private ScxkzQzService scxkzService;
/* 22:   */   
/* 23:   */   @RequestMapping({"/getImage"})
/* 24:   */   public void getImage(ModelMap model, HttpServletRequest request, HttpServletResponse response)
/* 25:   */   {
/* 26:   */     try
/* 27:   */     {
/* 28:35 */       Map<String, Object> data = this.scxkzService.getOrganImg(model);
/* 29:   */       
/* 30:37 */       response.setContentType("image/JPEG;charset=UTF-8");
/* 31:   */       
/* 32:39 */       response.setContentType("application/x-msdownload;");
/* 33:   */       
/* 34:41 */       response.getOutputStream().write((byte[])data.get("ORGAN_STAMP"));
/* 35:   */     }
/* 36:   */     catch (IOException e)
/* 37:   */     {
/* 38:45 */       e.printStackTrace();
/* 39:   */     }
/* 40:   */   }
/* 41:   */   
/* 42:   */   @RequestMapping({"/organStamp"})
/* 43:   */   public Map<String, Object> organStamp(ModelMap model, HttpServletRequest request)
/* 44:   */   {
/* 45:63 */     model.putAll(this.scxkzService.save(model));
/* 46:   */     
/* 47:65 */     return model;
/* 48:   */   }
/* 49:   */   
/* 50:   */   @RequestMapping({"/scbxx"})
/* 51:   */   public Map<String, Object> scbxx(ModelMap model, HttpServletRequest request)
/* 52:   */   {
/* 53:71 */     model.putAll(this.scxkzService.scbxx(model));
/* 54:   */     
/* 55:73 */     return model;
/* 56:   */   }
/* 57:   */   
/* 58:   */   public CoreSimpleService servce()
/* 59:   */   {
/* 60:78 */     return this.scxkzService;
/* 61:   */   }
/* 62:   */ }


/* Location:           D:\Users\Desktop\shanxi\项目\sxazmis\WEB-INF\classes\
 * Qualified Name:     com.rinsi.app.azsb.azzl.scs.scxkzqz.ScxkzQzController
 * JD-Core Version:    0.7.0.1
 */